//
//  ViewController.swift
//  Intrinsic Content Size
//
//  Created by NMXY on 2020/12/30.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.translatesAutoresizingMaskIntoConstraints = false
        
        let customerIntrinsicView = CustomerIntrinsicView ()
        let customerView = CustomerView ()
        
        self.view.addSubview(customerIntrinsicView)
        self.view.addSubview(customerView)
        
        NSLayoutConstraint.activate([
            customerIntrinsicView.topAnchor.constraint(equalTo: self.view.layoutMarginsGuide.topAnchor, constant: 100),
            customerIntrinsicView.centerXAnchor.constraint(equalTo: self.view.centerXAnchor),
            
            customerView.topAnchor.constraint(equalTo: customerIntrinsicView.bottomAnchor,constant: 80),
            customerView.centerXAnchor.constraint(equalTo: self.view.centerXAnchor),
        ])
        
       
        
        
    }


}

